package com.crazy.base.common.core.exception;

import lombok.Getter;

@Getter
public enum CommonExeceptionEnum implements ExceptionEnum {

    PARAM_ERROR(400, "参数错误"),
    NOT_FOUND(404, "找不到资源"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    SERVER_ERROR(500, "服务器异常");

    private final int code;

    private final String msg;

    CommonExeceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
